import Layout from '@/views/layout/Layout'

export default [
  {
    path: '/system',
    component: Layout,
    redirect: 'system',
    name: 'system',
    meta: {
      title: '注册账户查询',
      icon: 'peoples'
    },
    children: [
      {
        path: 'usersearch',
        component: () => import('@/views/system/usersearch'),
        name: 'usersearch',
        meta: {
          perms: [1],
          title: '注册账户查询',
          noCache: true
        }
      }
    ]
  },
  {
    path: '/companysearch',
    component: Layout,
    /*redirect: 'noredirect',
    alwaysShow: true,
    name: 'system',*/
    meta: {
      title: '公司注册查询',
      icon: 'chart'
    },
    children: [
      {
        path: 'companysearch',
        component: () => import('@/views/system/companysearch'),
        name: 'companysearch',
        meta: {
          perms: [1],
          title: '公司注册查询',
          noCache: true
        }
      }
    ]
  },
  {
    path: '/recordsearch',
    component: Layout,
    redirect: 'recordsearch',
    /*name: 'recordsearch',*/
    meta: {
      title: '贴现查询',
      icon: 'money'
    },
    children: [
      {
        path: 'recordsearch',
        component: () => import('@/views/system/recordsearch'),
        name: 'recordsearch',
        meta: {
          perms: [1],
          title: '贴现查询',
          noCache: true
        }
      }
    ]
  },
  {
    path: '/cashsettle',
    component: Layout,
    redirect: 'cashsettle',
    /*name: 'cashsettle',*/
    meta: {
      title: '返佣处理',
      icon: 'example'
    },
    children: [
      {
        path: 'cashsettle',
        component: () => import('@/views/system/cashsettle'),
        name: 'cashsettle',
        meta: {
          perms: [1],
          title: '返佣处理',
          noCache: true
        }
      }
    ]
  },
  {
    path: '/statistical',
    component: Layout,
    redirect: 'statistical',
    /*name: 'statistical',*/
    meta: {
      title: '系统日志管理',
      icon: 'international'
    },
    children: [
      {
        path: 'statistical',
        component: () => import('@/views/statistical/statistical'),
        name: 'statistical',
        meta: {
          perms: [1],
          title: '账户统计',
          noCache: true
        }
      },
      /*{
        path: 'account',
        component: () => import('@/views/account/account'),
        name: 'account',
        meta: {
          perms: [1],
          title: '账户查询',
          noCache: true
        }
      },*/
    ]
  },
  {
    path: '/config',
    component: Layout,
    redirect: 'config',
    /*name: 'config',*/
    meta: {
      title: '系统参数设置',
      icon: 'list'
    },
    children: [
      {
        path: 'config',
        component: () => import('@/views/system/config'),
        name: 'config',
        meta: {
          perms: [1],
          title: '系统参数设置',
          noCache: true
        }
      }
    ]
  },
  {
    path: '/bankcomm',
    component: Layout,
    redirect: 'bankcomm',
    /*name: 'bankcomm',*/
    meta: {
      title: '渠道参数设置',
      icon: 'tree'
    },
    children: [
      {
        path: 'bankcomm',
        component: () => import('@/views/system/bankcomm'),
        name: 'bankcomm',
        meta: {
          perms: [1],
          title: '渠道参数设置',
          noCache: true
        }
      },
    ]
  },
  /*{
    path: '/extendcomm',
    component: Layout,
    redirect: 'extendcomm',
    name: 'extendcomm',
    meta: {
      title: '推广参数设置',
      icon: 'guide'
    },
    children: [
      {
        path: 'extendcomm',
        component: () => import('@/views/system/extendcomm'),
        name: 'extendcomm',
        meta: {
          perms: [1],
          title: '推广参数设置',
          noCache: true
        }
      },
    ]
  },*/
  {
    path: '/statistical',
    component: Layout,
    redirect: 'statistical',
    /*name: 'statistical',*/
    meta: {
      title: '系统日志管理',
      icon: 'nested'
    },
    children: [
      {
        path: 'syslog',
        component: () => import('@/views/statistical/syslog'),
        name: 'syslog',
        meta: {
          perms: [3],
          title: '系统日志管理',
          noCache: true
        }
      },
    ]
  },
]
